#include<stdio.h>
int fib(int n) {
	int i, result=1,b=1,c;
	for (i = 3; i <= n; i++) {
		c = result;
		result = result + b;
		b = c;
	}
	return result;
}
int main(void) {
	int a, b,i=1;
	scanf("%d%d", &a, &b);
	while (fib(i) <= a) {
		i++;
	}
	while (fib(i) <= b) {
		printf("%4d", fib(i));
		i++;
	}
	return 0;
}
